<h1>Listing comics</h1>

<table>
  <tr>
	<th>Rank</th>
    <th>Pic</th>
	<th></th>
	<th></th>
  </tr>

<% for comic in @comics %>
  <tr>
	<td><%=h comic.rank %></td>
    <td><a href="<%=comic_url(comic)%>"><%=image_tag comic.public_filename(:mini) %></a></td>
    <td><%= link_to 'Edit', edit_comic_path(comic) %></td>
    <td><%= link_to 'Destroy', comic, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New comic', new_comic_path %>
